<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>chart</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
		 <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.3.1.js"></script>
	 	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/homepages/js/functions.js"></script>
	    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
		<script  type="text/javascript" src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/js/dropzone.min.js"></script>
		<script  type="text/javascript" src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/mul_imgs.js"></script>
		<link   type="text/css" href="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/css/dropzone.css" rel="stylesheet"/>   
		<link   type="text/css" href="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/css/basic.css" rel="stylesheet" />
	</head>
	<script type="text/javascript">
		$(function(){
		 //禁止右键菜单
		document.oncontextmenu = function(){
		return false;
		}; 
		//禁止F12
		 document.body.onkeydown=function (e){
         var currKey=0,evt=e||window.event;
         currKey=evt.keyCode||evt.which||evt.charCode;//支持IE、FF
         if (currKey == 123) {
             return false;
       	 }
   		 };
			initMulFunc();
		});
		
		
		function aaa(){
			 $.messager.confirm('Confirm','Are you sure you want to delete record?',function(r){
		    if (r){
		        alert('ok');
		    }
});
				
		}
		
		//函数  
function getWorkDays(){  
var startDate = new Date(document.getElementById("startDate").value.replace(/-/g, "/"));    
//结束日期  
var endDate = new Date(document.getElementById("endDate").value.replace(/-/g, "/"));    
       var diffDays = (endDate - startDate)/(1000*60*60*24) + 1;//获取日期之间相差的天数  
       var remainDay = diffDays % 7;//得到日期之间的余数（0-6之间）  
       var weeks = Math.floor(diffDays / 7);//获取日期之间有多少周  
       var weekends = 2 * weeks;//计算每周*2 得到取整的的周六日天数  
       var weekDay = startDate.getDay();//获取开始日期为星期几（0，1，2，3，4，5，6）0对应星期日  
       for(var i = 0;i < remainDay;i++){//循环处理余下的天数有多少个周六或者周日（最多出现一个周六或者一个周日）  
                if(((weekDay + i)==6)||((weekDay + i)==0)||((weekDay + i)==7)){  
                    weekends = weekends + 1;  
                }  
            }  
       alert((diffDays-weekends));//工作日=相差天数减去周六日天数  
} 
	</script>
	<body>
		 <div id="mul_imgs" class="mul_imgs" > 
			<div class="mul_div"  >
				 <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/left.png"  id="left" class="left" />
				 <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/right.png" id="right"  class="right" />
				 <div id="prolist" class="prolist"  >
				    <div id="prolists" class="prolists" >
				       <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/pxh1.jpg" />
				       <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/pxh1.jpg" />
				       <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/pxh1.jpg" />
				       <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/pxh1.jpg" />
				       <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/pxh1.jpg" />
				       <img src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/images/pxh1.jpg" />
				       <img src="${pageContext.request.contextPath}/UploadFiles/测试.jpg" />
				    </div>
				  </div>
				 <div class="newMyDropzone" onclick="showMyDropzone()" ></div>
				 <div  id="imgDropzone" class="imgDropzone">
				 	 <div class="updropzone" ><a class="alink"  onclick="closeImgDiv()">[关闭]</a><a class="alink"   onclick="delAllImgs()">[删除全部]&nbsp;&nbsp;&nbsp;</a></div>
				 	 <div id="myDropzone" class="dropzone" ></div>
				 	 <div id="upImgs" >
				 	 	<span  class="failStyle" id="failStyle">&nbsp;以下图片上传失败的:&nbsp;</span>
				 	 	<span id="failImgs" class="failImgs"></span>
				 	 	<div id="successMag" class="okMags" >以下图片上传成功</div>
				 	 </div>
				 </div>
				 <div id="fade" class="black_shade"></div>
		    </div>
	    </div>
	    <button onclick="aaa()">1234</button>
	    起始日期：<input type="text" id="startDate" name="startDate" value="2012/03/01">   截至日期<input type="text" id="endDate" name="endDate" value="2014/05/20">  
<input type="button" name="BT" value="计算工作日" onclick="getWorkDays()">  
	</body>
</html>


